package com.taldh.guava;

import com.google.common.hash.BloomFilter;
import com.google.common.hash.Funnel;
import com.google.common.hash.PrimitiveSink;

import java.nio.charset.Charset;

public class BloomFilterTest {

    void test() {
        BloomFilter.create(new Funnel<String>() {
            @Override
            public void funnel(String from, PrimitiveSink into) {
                into.putString(from, Charset.defaultCharset());
            }
        }, 10_0000_0000, 0.00003D);
    }

}
